#include <avr/io.h>
#include <math.h>
#include "ACUASuart.h"
#include <util/delay.h>
#include <stdlib.h>
#include "projectdefinitions.h"



PROGRAM_INIT

	ACTIVATE_LCD
	unsigned char c;
	INIT_UART
	CLEAR_LCD
	LCD_XY(1,1)

PROGRAM_START

	UART_CHAR('A')
	UART_READ_CHAR(c)

	LCD_TEXT(" A")
	LCD_CHAR(126)
	LCD_CHAR(c)

	if(c==65) LCD_CHAR(232)
	else LCD_CHAR('?')

	_delay_ms(500);

PROGRAM_END

/*
PROGRAM_INIT
	unsigned char c;
	unsigned char x=0;
	INIT_UART
	ACTIVATE_LCD
	LCD_XY(1,1)

	UART_TEXT("ACUAS Easy Programming. Send text!") 

PROGRAM_START
	UART_READ_CHAR(c)
	if(c)
	{
		DISPLAY_LEDS(c)
		UART_CHAR(c)
		LCD_CHAR(c)
		_delay_ms(200);
		x++;
		if(x==64){
			CLEAR_LCD
			x=0;
		}
	}
PROGRAM_END
*/
